<script setup lang="ts">
import { onLaunch } from '@dcloudio/uni-app';
import { getStorage } from '@/utils/uni-storage';

onLaunch(() => {
    const token = getStorage('token');

    if (token) {
        uni.switchTab({ url: '/pages/home/index' });
    } else {
        uni.navigateTo({ url: '/pages/login/index' });
    }
});
</script>
<style lang="scss">
@import 'uview-plus/index.scss';
</style>
<style lang="scss">
@import './assets/iconfont.css';
</style>
<style lang="scss">
@import './styles/index.scss';
</style>
